package com.yang.trainingCamp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.trainingCamp.pojo.Campers;
import com.yang.trainingCamp.pojo.EntryRecord;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EntryRecordMapper extends BaseMapper<EntryRecord> {

    @Update("update entry_record set in_camp = 2 where in_camp = 1 and entry_time <= now()")
    void updateCamperEntryState();

}
